package com.example.response;

import org.json.JSONObject;

import com.example.network.Response;
import com.example.resource.RequestFieldFromServer;

/**
 * 注册请求后的响应
 * 
 * @author TangChao
 */
public class RegistResponse extends Response {

	public RequestFieldFromServer field;

	@Override
	protected void jsonToObject() {
		field = new RequestFieldFromServer();
		try {
			JSONObject jsonObject = reposonJson.getJSONObject("result");
			field.status = jsonObject.optString("status");
			field.code = jsonObject.optInt("code");
			field.MD5 = jsonObject.optString("MD5UserBaseId");
			field.message = jsonObject.optString("message");
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}
